<template>
  <div class="container-search">
    <p>上报单位</p>
    <el-input
    placeholder="请输入......"
    v-model="input"
    clearable>
    </el-input>
    <el-button type="primary" @click="searchData">搜索</el-button>
    <el-button type="success" @click="exportData">导出excel</el-button>
  </div>
</template>

<script>
export default {
  data(){
    return{
      input:'',
    }
  },
  methods: {
    // 导出 excel
    exportData(){
      this.$emit('exportDataParent')
    },
    //查找
    searchData(){
      this.$emit('searchDataFun',this.input)
    }
  },

}
</script>

<style lang="less" scoped>
div,p,span,li{
    box-sizing: border-box;
}
.container-search{
    display: flex;
    height: 64px;
    width: 100%;
    color:#333333 ;
     background: rgba(255,255,255,0.6);
    border-radius: 5px;
    padding: 16px 30px;
    margin-bottom: 20px;
    p{
        margin-right: 28px; 
        margin-left: 74px;    
        font-size: 16px;
        line-height: 32px;
        font-weight: bold;
    }
    .el-input{
        width: 150px;
        height: 34px;
        margin-right: 50px;
        box-shadow: 0px 2px 6px #333333;
       /deep/.el-input__inner{        
        height: 26px;
        font-size: 12px;
        padding: 16px 12px;
         &::placeholder {
            color:#333333;
         }
       }
    }
    .el-button--primary{
      background: #6669FF;
      width: 100px;
      margin-right: 600px;
      font-size: 14px;   
    }
    .el-button--success{
      width: 100px;
      font-size: 14px;   
    }
}


</style>